package com.lmscn.lms.api.model;

import com.jfinal.plugin.activerecord.Model;

/**
 * Created by Czl on 2015/8/10.
 */
@SuppressWarnings("serial")
public class ClazzLearningSetting extends Model<ClazzLearningSetting>{

    public static final ClazzLearningSetting dao = new ClazzLearningSetting();

    /**
     * 根据班级ID
     * 查询班级考试设置
     * @param clazzId
     * @return
     */
    public ClazzLearningSetting findByClazzId(Long clazzId){
        return dao.findFirst("select * from t_clazz_learning_setting where class_id = ?",clazzId);
    }

}
